<?php
  require('includes/config.php');
  require("core/iJFactory.php");
  

 
  iJFactory::init();

  $iJDataBase   =  iJFactory::singleton('iJDataBase');
  $iJSession    =  iJFactory::singleton('iJSession');
  $iJLanguages  =  iJFactory::singleton('iJLanguages');
  $iJTemplate   =  iJFactory::singleton('iJTemplate');   
  $iJConfig     =  iJFactory::singleton('iJConfig');   
     
  $iJDataBase->connect();
  
  $iJConfig->init();
  
  $iJSession->start();
  
  $iJLanguages->init();
  
  iJHrefLink::init();
  
  if(isset($_POST['AJAXRequest'])) {
    iJRemoteCall::executeAJAXRequest($_POST);
    die();
  }


?>